<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
	<%@include file="/WEB-INF/views/include.jsp"%>
	
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 招聘管理 <span class="c-gray en">&gt;</span> 行业招聘列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<form action="${base}/admin/recruit/list${path}.do" method="post">
	<div class="page-container">
		<div class="text-c"> 日期范围：
			<input type="text" name="firstTime" value="${firstTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'logmax\')}'})" id="logmin" class="input-text Wdate" style="width:120px;">
			-
			<input type="text" name="endTime" value="${endTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'logmin\')}'})" id="logmax" class="input-text Wdate" style="width:120px;">
			<span class="select-box inline">
				<select name="industryId" class="select">
					<option value="">---请选择行业---</option>
					<option value="0" ${industryId == 0 ? 'selected' : ''}>计算机|互联网|通信|电子</option>
					<option value="1" ${industryId == 1 ? 'selected' : ''}>会计|金融|银行|保险</option>
					<option value="2" ${industryId == 2 ? 'selected' : ''}>广告|媒体</option>
				</select>
			</span>
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i>搜索</button>
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> 
			<span class="l">
<!-- 	 			<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>  -->
	 			<a class="btn btn-primary radius" onclick="recruit_add('发布行业招聘','${base}/admin/recruit/add${path}.do');" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 发布行业招聘</a>
	 		</span>
			<span class="r">共有数据：<strong>${list.size()}</strong> 条</span> 
		</div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th width="25"><input type="checkbox" name="" value=""></th>
						<th width="80">序号</th>
						<th>行业</th>
						<th>工作地点</th>
						<th>投递人数</th>
						<th>发布时间</th>
						<th width="80">操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="list" varStatus="status">
						<tr class="text-c">
							<td><input type="checkbox" value="" name=""></td>
							<td>${status.index+1}</td>
							<td>
								<c:if test="${list.industryId == 0}">计算机|互联网|通信|电子</c:if>
								<c:if test="${list.industryId == 1}">会计|金融|银行|保险</c:if>
								<c:if test="${list.industryId == 2}">广告|媒体</c:if>
							</td>
							<td>${list.workPlace}</td>
							<td><a href="javascript:;" onClick="recruit_deliver_history('投递记录查看','${base}/admin/recruit/list_recruit_history.do?recruitId=${list.id}')" title="投递记录查看">${list.toNumber}</a></td>
							<td><fmt:formatDate value="${list.sendTime}"  pattern="yyyy-MM-dd HH:mm:ss" type="date" dateStyle="long" /></td>
							<td class="f-14 td-manage">
								<a style="text-decoration:none" class="ml-5" onClick="recruit_show('行业招聘详情','${base}/admin/recruit/view${path}.do?id=${list.id}')" href="javascript:;" title="预览"><i class="Hui-iconfont">&#xe695;</i></a>
								<a style="text-decoration:none" class="ml-5" onClick="recruit_edit('编辑行业招聘','${base}/admin/recruit/edit${path}.do?id=${list.id}')" href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a> 
								<a style="text-decoration:none" class="ml-5" onClick="recruit_del(this,'${list.id}')" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i></a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</form>
<script type="text/javascript" src="${base}/common/js/recruit/list.js?v=${v}"></script>
<script type="text/javascript">
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,6]}// 不参与排序的列
		]
	});
</script>
</body>
</html>